﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace eShop.Core
{
    /// <summary>
    /// 扩展(仓库 、入库、收款）
    /// </summary>
    public partial interface IRDBSStrategy
    {
        #region 仓库信息
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="StockInfo"></param>
        /// <returns></returns>
        int CreateStock(StockInfo StockInfo);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="StockInfo"></param>
        void UpdateStock(StockInfo StockInfo);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="wid"></param>
        /// <returns></returns>
        int DeleteStockById(int wid);
        /// <summary>
        /// 获取仓库列表
        /// </summary>
        /// <returns></returns>
        DataTable GetStockList();

        #endregion


        #region 入库信息
        /// <summary>
        /// 得到入库单列表
        /// </summary>
        /// <returns></returns>
        DataTable GetReceiveList();

        /// <summary>
        /// 删除入库单（根据id)
        /// </summary>
        /// <param name="receiveid"></param>
        /// <returns></returns>
        int DeleteReceiveById(int receiveid);

        /// <summary>
        /// 更新入库单信息（更新时注意productstocks中的商品库存数量
        /// </summary>
        /// <param name="ReceiveInfo"></param>
        int UpdateReceive(ReceiveInfo ReceiveInfo);

        /// <summary>
        /// 创建入库单
        /// </summary>
        /// <param name="ReceiveInfo"></param>
        /// <returns></returns>
        int CreateReceive(ReceiveInfo ReceiveInfo);


        IDataReader GetReceiveById(int rid);
        #endregion

    }
}
